import request from '@/utils/request'

export function login(loginForm) {
	return request({
		url: '/doLogin',
		method: 'post',
		data: loginForm
	})
}

export function getInfo(token) {
	return request({
		url: '/user/info',
		method: 'get',
		params: { token }
	})
}

export function logout() {
	return request({
		url: '/logout',
		method: 'post'
	})
}

export function getMenus() {
	return request({
		url: '/user/menus',
		method: 'get'
	})
}
